package com.sdy.healthcode.biz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.healthcode.biz.dto.CarCheckInInfoDTO;
import com.sdy.healthcode.biz.model.VehicleRegistration;
import com.sdy.mvc.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cgj
 * @since 2020-03-16
 */
public interface VehicleRegistrationMapper extends BaseMapper<VehicleRegistration> {
    /**
     * 如果传的是name，获取车辆出入登记
     * @param action
     * @param name
     * @param phone
     * @param startTime
     * @param endTime
     * @param visitDepartment
     * @return
     */
    List<CarCheckInInfoDTO> getCarCheckInInfo(Integer action, String name,String phone, String startTime, String endTime, String visitDepartment,Page page);


}

